package eva.savant.business.global.view

import eva.savant.core.view.Maestro
import eva.savant.businessobject.gl.Tipo
import eva.savant.businessobject.gl.Clase

import javax.faces.bean.ManagedBean
import javax.faces.bean.SessionScoped
import javax.annotation.PostConstruct

@SessionScoped
@ManagedBean(name = 'IMTipo')
public class IMTipo extends Maestro {

  def lsClase

  @PostConstruct
  public void cleanEntity() {

    entity= new Tipo(); init()

    entity.clase= new Clase()

    lsClase= find(Clase.class,'')
  }

}
